package soft.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import soft.mapper.ErrorGradeMapper;
import soft.pojo.ErrorGrade;
import soft.service.ErrorGradeService;

import java.util.List;


@Service
public class ErrorGradeServiceImpl implements ErrorGradeService {

    @Autowired
    private ErrorGradeMapper errorGradeMapper;
    @Override
    public List<ErrorGrade> getList() {
        return errorGradeMapper.getList();
    }

    @Override
    public ErrorGrade getById(String sId) {
        return errorGradeMapper.getById(sId);
    }

    @Override
    public boolean updateError(ErrorGrade bean) {
        return errorGradeMapper.updateError(bean);
    }

    @Override
    public boolean addError(ErrorGrade bean) {
        return errorGradeMapper.addError(bean);
    }

    @Override
    public boolean deleteError(String sId) {
        return errorGradeMapper.deleteError(sId);
    }
}
